PY_INC_PATH=/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
PY_LIB_PATH=/System/Library/Frameworks/Python.framework/Versions/2.7/lib

INC_PATH=/Users/chenglun/dev/third/boost_1_72_0
LIB_PATH=/Users/chenglun/dev/third/boost_1_72_0/stage/lib

TARGET=hello_ext.so

all:
	g++ -I$(INC_PATH) -I$(PY_INC_PATH) -fPIC -c greet.cpp
	g++ -shared -L$(LIB_PATH) -L$(PY_LIB_PATH)  -lboost_python27 -lpython2.7  -o $(TARGET)  greet.o

run:
	python main.py


clean:
	rm -frv *.o
	rm -frv  $(TARGET)
